import json
from parameterized import parameterized


class ReadUtil:

    # 封装读取json文件的方法
    @classmethod
    def read_data(cls, file_path):
        # 读取ihrm_login_data.json文件
        with open(file_path, "r", encoding="utf_8") as f:
            json_data = json.load(f)
        list_data = []
        for item in json_data:
            temp = tuple(item.values())
            list_data.append(temp)
        return list_data  # 不能在for里面return


if __name__ == '__main__':
    result = ReadUtil.read_data("../data/ihrm_data.json")
    print(result)
